<%-- 
    Document   : programmavisite
    Created on : 16-dic-2011, 8.15.55
    Author     : ren
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <html>
        <head>

            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <link rel="stylesheet" type="text/css" href="./style_tabella_prog.css" />
            <f:loadBundle basename="message.message" var="msg"/>        
            <title> <h:outputText value="#{msg.programmavisite}"/> </title>

        </head>
        <body>

            <h:form>
                <h:dataTable     value="#{programmaVisite}" var="vis"     
                                 style="overflow:auto; width:100%; height:50px"
                                 rows="8" footerClass="ordersHeader"
                                 styleClass="orders" headerClass="ordersHeader" columnClasses="evenColumn,oddColumn">
                    <h:column>
                        <f:facet name="header">  
                            <h:outputText value="#{msg.secondidoponascita}" /> 
                        </f:facet>

                        <rich:inputNumberSpinner minValue="1" maxValue="1000" value="#{programmaVisite.secondidoponascita}"/>

                    </h:column>     
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="#{msg.descrizione}"/> 
                        </f:facet>                              
                        <h:inputTextarea  styleClass="campoUptade" value="#{programmaVisite.descDopoNascita}"/>                                                                        
                    </h:column>

                    <h:column>
                        <f:facet name="header">  
                            <h:outputText value="#{msg.tipovisita}"/> 
                        </f:facet>
                        <h:selectOneMenu value="#{programmaVisite.tipovisitaDopoNascita}" styleClass="buttoncombo"> 
                            <f:selectItem itemValue="PROGRAMMATA" itemLabel="#{msg.menuprogrammata}"/> 
                            <f:selectItem itemValue="VACCINAZIONE" itemLabel="#{msg.menuvaccinazione}"/> 
                        </h:selectOneMenu> 
                    </h:column>                   

                    <h:column>     
                        <h:commandButton value="#{msg.programma}" action="#{programmaVisite.eseguiProgrammazioneNascita()}" styleClass="button"/>
                    </h:column>
                                         

                </h:dataTable> 
            </h:form>




            <h:form>
                <h:dataTable     value="#{programmaVisite}" var="vis"     
                                 style="overflow:auto; width:100%; height:50px"
                                 styleClass="orders" headerClass="ordersHeader" columnClasses="evenColumn,oddColumn">
                    <h:column>
                        <f:facet name="header">  
                            <h:outputText value="#{msg.giornidopoultimavisita}"/> 
                        </f:facet>

                        <rich:inputNumberSpinner  minValue="1" maxValue="365" value="#{programmaVisite.giornidopoultimavisita}"/>

                    </h:column>  
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="#{msg.descrizione}"/> 
                        </f:facet>                              
                        <h:inputTextarea  styleClass="campoUptade" value="#{programmaVisite.descDopoUltimaVisita}"/>                                                                        
                    </h:column>

                    <h:column>
                        <f:facet name="header">  
                            <h:outputText value="#{msg.tipovisita}"/> 
                        </f:facet>
                        <h:selectOneMenu value="#{programmaVisite.tipovisitaDopoUltimaVisita}" styleClass="buttoncombo"> 
                            <f:selectItem itemValue="PROGRAMMATA" itemLabel="#{msg.menuprogrammata}"/> 
                            <f:selectItem itemValue="VACCINAZIONE" itemLabel="#{msg.menuvaccinazione}"/> 
                        </h:selectOneMenu> 
                    </h:column>                   

                    <h:column>     
                        <h:commandButton value="#{msg.programma}" action="#{programmaVisite.eseguiProgrammazioneUltimaVisita()}" styleClass="button"/>
                    </h:column>
                </h:dataTable> 
            </h:form>


            <h:form>
                <h:dataTable     value="#{programmaVisite}" var="vis"     
                                 style="overflow:auto; width:100%; height:50px"
                                 styleClass="orders" headerClass="ordersHeader" columnClasses="evenColumn,oddColumn">
                    <h:column>
                        <f:facet name="header">  

                        </f:facet>
                        <h:outputText value="#{msg.programmasecondomedico}"/> 
                    </h:column> 

                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="#{msg.descrizione}"/> 
                        </f:facet>                              
                        <h:inputTextarea  styleClass="campoUptade" value="#{programmaVisite.descMedico}" />                                                                        
                    </h:column>

                    <h:column>
                        <f:facet name="header">  
                            <h:outputText value="#{msg.tipovisita}"/> 
                        </f:facet>
                        <h:selectOneMenu value="#{programmaVisite.tipovisitaMedico}" styleClass="buttoncombo"> 
                            <f:selectItem itemValue="PROGRAMMATA" itemLabel="#{msg.menuprogrammata}"/> 
                            <f:selectItem itemValue="VACCINAZIONE" itemLabel="#{msg.menuvaccinazione}"/> 
                        </h:selectOneMenu> 
                    </h:column>                   

                    <h:column>     
                        <h:commandButton value="#{msg.programma}" action="#{programmaVisite.eseguiProgrammazioneMedico()}" styleClass="button"/>
                    </h:column>
                </h:dataTable> 
            </h:form>


            <h:form>
                <h:commandButton value="#{msg.back}" action="back" styleClass="button"/>                
            </h:form>
            <br>
            <br>
            <br>
            <%@ include file="/lingua/lingua.jsp" %>
        </body>
        <html>
        </f:view>